//
//  Document.h
//  GCDTest
//
//  Created by 万伟琦 on 2018/9/28.
//  Copyright © 2018年 万伟琦. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Document : NSObject

@property (nonatomic) NSInteger page;

@property (nonatomic) NSConditionLock *lock;


- (void)appendPage;

- (void)writePagesToDisk:(void(^)(void))completion;

- (void)run;

@end

NS_ASSUME_NONNULL_END
